// pages/hisTradeInfo/hisTradeInfo.js
const app = getApp()

const util = require('../../utils/util.js')

Page({

  /**
   * 页面的初始数据
   */
  data: {
		history: {},
    modifyTime:'',
		user: {},
		comment: {}
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
		var trade = app.globalData.trade
		util.getUser(app.globalData.userId, this)
		util.getComment(trade.indent.indentId, app.globalData.userId, this)

		this.setData({
			history: trade,
      modifyTime: util.formatTime(trade.indent.modifyTime)
		})
  }
})